/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen 
 * @date: Jan 28, 2005$
 * @version: 1.0
 */
package edu.psu.geovista.app.plot.ruler.tick;

import java.awt.*;

public abstract class BasicTick implements Tick {
    public static final int TICK_LABEL_OFFSET = 5; ////distance btw tick end and label edge

    Point location=new Point(); //tick's location on the ruler
    float value;//data value corresponding to the tick ( usally displayed on the label)


    int length;//tick length
    boolean visible=true;
    Color color=Color.BLACK ;//tick color
    // 
    // 
    int orient;



    public abstract void paintComponent(Graphics g);

    public Point getLocation() {
        return location;
    }

    public void setLocation(Point location) {
        this.location.setLocation(location);
    }
    public void setLocation(int x, int y){
        location.setLocation(x,y);
    }

    public float getValue() {
        return value;
    }

    public void setValue(float value) {
        this.value = value;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

     public int getOrient() {
        return orient;
    }

    public void setOrient(int orient) {
        this.orient = orient;
    }

    public void setLabelBounds(int x, int y,int w, int h){

    }
     public Rectangle getLabelBounds() {
        return null;
    }
}
